package com.zhuhjay.boot.config;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ZhuHJay
 * @date 2022/4/1 19:52
 */
@Configuration
@MapperScan("com.zhuhjay.boot.mapper")
public class MybatisPlusConfiguration {

    /** 此时使用的mybatisPlus不是比较新的版本 **/
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
